package com.jingbit.ai.entities;

import android.text.TextUtils;

/**
 * 短信信息
 */
public class MessageInfo extends BaseInfo {
    private String name;
    private String phoneno;
    private String content;
    private String type;
    private String date;

    public String getName() {
        if (TextUtils.isEmpty(name))
            return "未备注联系人";
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneno() {
        return phoneno;
    }

    public void setPhoneno(String phoneno) {
        this.phoneno = phoneno;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "MessageInfo{" +
                "name='" + name + '\'' +
                ", phoneno='" + phoneno + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}